tools/libxl: Handle checkpoint records in a libxl migration v2 stream
authorAndrew Cooper <andrew.cooper3@citrix.com>
Sun, 14 Jun 2015 21:04:04 +0000 (22:04 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 15 Jul 2015 10:22:54 +0000 (11:22 +0100)
commit49ddaa1ae1f8732b07bd203e54ec988825bd1e3b
treed179599097a2d70a16b78241c5032cbbaf49bdbc
parentabc3a3a1c06d59703992bb6502ef9b5e5f38c386
tools/libxl: Handle checkpoint records in a libxl migration v2 stream

This is the final bit of untangling for Remus.

When libxc issues a checkpoint callback, start reading and buffering
all libxl records from the stream.  Once a CHECKPOINT_END record is
encountered, start processing all records.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
---
v4: Adjustments in line with review for earlier patches in the series
v3: Simplify, use named constants for API
tools/libxl/libxl_create.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_stream_read.c